package com.es.ocr.controller;


import com.es.ocr.baidu.GeneralBasic;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/ocr")
public class OcrController {


    @ResponseBody
    @RequestMapping("/")
    public String index() {
        return "OCR";
    }


    @ResponseBody
    @RequestMapping(value = "/test", produces = MediaType.APPLICATION_JSON_VALUE)
    public String test() {
        String result = GeneralBasic.generalBasic();
        return result;
    }
}
